/**
 * Created by tom on 09/01/14.
 */
public class IsoscelesTriangle {

    public static void main(String[] args)
    {
        int heightOfTriangle = Integer.parseInt(args[0]);

        int maxWidth = (heightOfTriangle*2)-1;

        int workingWidth = 1;

        for(int x=0; x < heightOfTriangle; x++)
        {
            // print this line
            printWhiteSpaces(maxWidth, workingWidth);
            printAstrixs(workingWidth);
            printWhiteSpaces(maxWidth, workingWidth);
            System.out.println();

            workingWidth +=2;
        }
    }

    private static void printAstrixs(int workingWidth) {
        for(int numberOfAstrixs =0; numberOfAstrixs < workingWidth; numberOfAstrixs++)
        {
            System.out.print("*");
        }
    }

    private static void printWhiteSpaces(int maxWidth, int workingWidth) {
        for(int numberOfWhiteSpaces = (maxWidth-workingWidth)/2; numberOfWhiteSpaces > 0; numberOfWhiteSpaces--)
        {
            System.out.print(" ");
        }
    }
}
